
#ifndef BASICSAMPLEHANDLER_H
#define BASICSAMPLEHANDLER_H

#include <BSphere>
#include <BGroup>
#include <BPointRestraint>
#include <BHandler>

using namespace BWE;

class BasicSampleHandler : public BHandler
{
public:
	BasicSampleHandler();
	~BasicSampleHandler();

protected:
	virtual void attached(BViewer* viewer);
	virtual void detached(BViewer* viewer);

	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

	virtual void keyPressEvent(const BKeyEvent& keyEvent) override;
	virtual void keyReleaseEvent(const BKeyEvent& keyEvent) override;

private:
	BHolder<BGroup>			_group;
	BHolder<BSphere>		_sphere;
};

#endif
